import request from '@/utils/request'

/**
 * 获取分页订单列表
 * @returns {Promise<PageDTO<OrderVO>} 返回分页订单数据
 */
export function getOrderList(params) {
  return request({
    url: '/order/list',
    method: 'get',
    params
  })
}

/**
 * 修改订单信息
 */
export function updateOrder(data) {
  return request({
    url: '/order',
    method: 'put',
    data
  })
}

/**
 * 批量删除订单
 */
export function deleteOrders(ids) {
  return request({
    url: '/order',
    method: 'delete',
    data: ids
  })
}

export default { 
  getOrderList
}
